<?php
namespace pinduoduo\Request;

use pinduoduo\AbstractInterface\Request;

class PddDdkCouponInfoQueryRequest extends Request
{

    /**
     * 查询优惠券信息
     * @var string
     */
    private $type = 'pdd.ddk.coupon.info.query';

    /**
     * 优惠券id
     * @var
     */
    private $couponIds;

    /**
     * 店铺id
     * @var
     */
    private $mallIds;

    public function setType($type)
    {
        $this->type = $type;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setCouponIds($couponIds)
    {
        $this->couponIds = $couponIds;
    }

    public function getCouponIds()
    {
        return $this->couponIds;
    }

    public function setMallIds($mallIds)
    {
        $this->mallIds = $mallIds;
    }

    public function getMallIds()
    {
        return $this->mallIds;
    }

    public function getParams()
    {
        $params = [
            'type'       => $this->type,
            'coupon_ids' => $this->couponIds,
            'mall_ids'   => $this->mallIds,
        ];
        return array_filter($params);
    }
}
